package com.gwtintegration.smartrfsandbox.server.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Version;

import com.gwtintegration.smartrf.server.entity.Identifiable;
import com.gwtintegration.smartrf.server.entity.Versionable;

@Entity
public class AddressEntity implements Serializable, Identifiable<Long>, Versionable {

	private static final long serialVersionUID = 8629103591377924791L;

	@Id
	@GeneratedValue
	private Long id;

	@Version
	private Long version;

	private CityEntity city;

	private String street;

	private Integer number;

	private String neighborhood;

	private String complement;

	@Override
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Override
	public Long getVersion() {
		return version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	public CityEntity getCity() {
		return city;
	}

	public void setCity(CityEntity city) {
		this.city = city;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public String getNeighborhood() {
		return neighborhood;
	}

	public void setNeighborhood(String neighborhood) {
		this.neighborhood = neighborhood;
	}

	public String getComplement() {
		return complement;
	}

	public void setComplement(String complement) {
		this.complement = complement;
	}

}
